class BetterImagesTable < ActiveRecord::Migration
  def self.up
    rename_column(:images, :image_facts_id, :image_fact_id)
    add_index(:images, :image_fact_id)
  end

  def self.down
    remove_index(:images, :image_fact_id)
    rename_column(:images, :image_fact_id, :image_facts_id)
  end
end
